<template>
	<theme-setting />
	<div class="common-layout">
		<el-container height="100%">
			<el-main>
				<router-view />
			</el-main>
		</el-container>
	</div>
</template>
<script lang="ts" setup>
import ThemeSetting from '@/components/ThemeSetting.vue';
import { invoke } from '@tauri-apps/api/tauri';
document.addEventListener('DOMContentLoaded', () => {
	invoke('close_splashscreen');
});
document.oncontextmenu = function (event) {
	event.preventDefault();
};
</script>

<style lang="less" scoped>
.el-main {
	margin: 0;
	padding: 0;
}
</style>
